
#include <gtest\gtest.h>


#include "LevelLoader.h"
#include "Game.h"




//------------------------------------------------------------------
//GAME
//------------------------------------------------------------------

//The action 
//A simple test map is provided
TEST(Game, updateGivenResultsInExpectedActions)
{	
	LevelLoader game_data(200);		

	vector<vector<Movable_type>> expected_map;
	for(int x = 0; x < 50; x++)
	{
		expected_map.push_back(vector<Movable_type>());
		for(int y = 0; y < 50; y++)
		{
			if( (x < 23 || x > 25) && (y < 23 || y > 25))
				expected_map.back().push_back(SAND);
			else
				expected_map.back().push_back(HOLE);
		}
	}

	EXPECT_TRUE(expected_map == game_data.getMapData());
}
